

<form nz-form #validateForm="ngForm" (ngSubmit)="submitForm()" nzLayout="horizontal" autocomplete="off">
    <!-- 模态框头部 -->
    <div class="modal-header">
        <div class="modal-title">
            <i class="anticon anticon-medicine-box mr-sm"></i>
            <span *ngIf="entity.id">{{l('Edit')}}</span>
            <span *ngIf="!entity.id">{{l('Create')}}</span>
        </div>
    </div>
    <!-- 模态框内容 -->
    <fieldset>
        <!-- 提示信息 -->
        <!-- <nz-alert nzType="info" nzCloseable [nzShowIcon]="true" nzMessage="l('我想提示点什么内容给你说')"></nz-alert> -->
            <nz-form-item nz-row>
                    <nz-form-label nz-col [nzSm]="6" [nzXs]="24" nzRequired nzFor="boatName">{{l('BoatName')}}</nz-form-label>
                <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                            <input nz-input name="boatName" #boatName="ngModel"
                                   [(ngModel)]="entity.boatName"
                                   [placeholder]="l('BoatName')"  required >

                            <!-- 校验 -->
                            <nz-form-explain *ngIf="boatName.control.dirty&&boatName.control.errors">
                                                                <ng-container *ngIf="boatName.control.hasError('required')">{{l('CanNotNull')}}</ng-container>
                            </nz-form-explain>

                </nz-form-control>
            </nz-form-item>
            <nz-form-item nz-row>
                    <nz-form-label nz-col [nzSm]="6" [nzXs]="24" nzRequired nzFor="boatCode">{{l('BoatCode')}}</nz-form-label>
                <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                            <input nz-input name="boatCode" #boatCode="ngModel"
                                   [(ngModel)]="entity.boatCode"
                                   [placeholder]="l('BoatCode')"  required >

                            <!-- 校验 -->
                            <nz-form-explain *ngIf="boatCode.control.dirty&&boatCode.control.errors">
                                                                <ng-container *ngIf="boatCode.control.hasError('required')">{{l('CanNotNull')}}</ng-container>
                            </nz-form-explain>

                </nz-form-control>
            </nz-form-item>
            <nz-form-item nz-row>
                    <nz-form-label nz-col [nzSm]="6" [nzXs]="24" nzRequired nzFor="seatNumber">{{l('SeatNumber')}}</nz-form-label>
                <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                            <input nz-input name="seatNumber" #seatNumber="ngModel"
                                   [(ngModel)]="entity.seatNumber"
                                   [placeholder]="l('SeatNumber')"  required >

                            <!-- 校验 -->
                            <nz-form-explain *ngIf="seatNumber.control.dirty&&seatNumber.control.errors">
                                                                <ng-container *ngIf="seatNumber.control.hasError('required')">{{l('CanNotNull')}}</ng-container>
                            </nz-form-explain>

                </nz-form-control>
            </nz-form-item>
            <nz-form-item nz-row>
                    <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="runStatus">{{l('RunStatus')}}</nz-form-label>
                <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                            <input nz-input name="runStatus" #runStatus="ngModel"
                                   [(ngModel)]="entity.runStatus"
                                   [placeholder]="l('RunStatus')" >


                </nz-form-control>
            </nz-form-item>
            <nz-form-item nz-row>
                    <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="leader">{{l('Leader')}}</nz-form-label>
                <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                            <input nz-input name="leader" #leader="ngModel"
                                   [(ngModel)]="entity.leader"
                                   [placeholder]="l('Leader')" >


                </nz-form-control>
            </nz-form-item>
            <nz-form-item nz-row>
                    <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="leaderMobile">{{l('LeaderMobile')}}</nz-form-label>
                <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                            <input nz-input name="leaderMobile" #leaderMobile="ngModel"
                                   [(ngModel)]="entity.leaderMobile"
                                   [placeholder]="l('LeaderMobile')" >


                </nz-form-control>
            </nz-form-item>
            <nz-form-item nz-row>
                    <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="auditStatus">{{l('AuditStatus')}}</nz-form-label>
                <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                            <input nz-input name="auditStatus" #auditStatus="ngModel"
                                   [(ngModel)]="entity.auditStatus"
                                   [placeholder]="l('AuditStatus')" >


                </nz-form-control>
            </nz-form-item>
            <nz-form-item nz-row>
                    <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="schedules">{{l('Schedules')}}</nz-form-label>
                <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                            <nz-select name="schedules" #schedules="ngModel"
                                       [(ngModel)]="entity.schedules" nzAllowClear
                                       [nzPlaceHolder]="l('Schedules')"  style="width: 120px;">
                                <!-- your select option -->
                                <!--
                                <nz-option [nzValue]="0" nzLabel="男"></nz-option>
                                <nz-option [nzValue]="1" nzLabel="女"></nz-option>
                                -->
                                <!-- <nz-option *ngFor="let option of optionList" [nzValue]="option" [nzLabel]="option.label"></nz-option>                    -->
                            </nz-select>


                </nz-form-control>
            </nz-form-item>

    </fieldset>
    <!-- 模态框底部 -->
    <div class="modal-footer">
        <button nz-button [nzType]="'default'" type="button" (click)="close()" [disabled]="saving">
            <i class="anticon anticon-close-circle-o"></i> {{l("Cancel")}}
        </button>
        <button nz-button [nzType]="'primary'" type="submit" [disabled]="!validateForm.form.valid|| saving" [nzLoading]="saving">
            <i class="anticon anticon-save" *ngIf="!saving"></i> {{l("Save")}}
        </button>
    </div>
</form>





